package com.sp.system.user.service;


import com.ananjt.system.vo.UserRoleVo;
import com.sp.system.user.feign.SpUserFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "${ananjt.system}", fallback = SpUserFallBack.class)
public interface SpUserService {

    @PostMapping(value = "/user/getSystemUserByLoginName")
    UserRoleVo getSystemUserByLoginName(@RequestParam("loginName") String loginName);

}
